<?php
/**
 * Template Name: Front Page Template
 *
 * @package tiffanyturnham
 */

get_header(); ?>
	<div class="slider"><!--[start:slider]-->
		<div class="sixteen columns">
		<?php
			//echo get_new_royalslider(1);
			//do_action('slideshow_deploy', '16');
		?>
		<?php 
    echo do_shortcode("[metaslider id=29]"); 
?>
		</div>	
	</div><!--[end:slider]-->
	<div class="feature-product"><!--[start:feature-product]-->
		<div class="sixteen columns line">
			<div class="flexslider carousel">
         	 		<ul class="slides">
						<?php
						$args = array( 'post_type' => 'product');
						$loop = new WP_Query( $args );
						while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
						<li>    
							<a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
								<?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'featured-slide'); 
								else echo '<img src="'.woocommerce_placeholder_img_src().'" alt="" />'; ?>
								<h4><?php the_title(); ?></h4>
								<?php //echo $product->get_sku(); ?>
								<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>

								   <span class="price"><?php //echo $product->get_price_html(); ?></span>

							</a>
                            <a class="readmore" href="<?php the_permalink(); ?>">Readmore</a>
							<?php //woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?>
						</li><!-- /span3 -->
						<?php endwhile; ?>
						<?php wp_reset_query(); ?>	
						
						
					</ul><div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div><div class="clear"></div>
	</div><!--[end:feature-product]-->
	<div class="clear"></div>
	<div class="location column omega">
		<div class="one-third column alpha">
			<!--<h5>Our Location</h5>
			<strong>Tiffany Turnham</strong><br/><br/>
			<p>3717 E. Thousand Oaks Blvd. Suite #250 <br/>Westlake Village, CA 91362</p>
			<div class="view-map"><a href="#">View a map of  our location</a></div>-->
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-front-one') ) : ?>
				<aside id="archives" class="widget">
					<h6 class="widget-title"><?php _e( 'Archives', 'tiffanyturnham' ); ?></h6>
					<ul>
					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					</ul>
				</aside>
			<?php endif; ?>
		</div>	
	</div>
	<div class="contact column alpha omega">
		<div class="one-third column">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-front-two') ) : ?>
				<aside id="archives" class="widget">
					<h6 class="widget-title"><?php _e( 'Archives', 'tiffanyturnham' ); ?></h6>
					<ul>
					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					</ul>
				</aside>
			<?php endif; ?>
		</div>
	</div>	
	<div class="testimonial column omega">	
		<div class="one-third column omega">
			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-front-three') ) : ?>
				<aside id="archives" class="widget">
					<h6 class="widget-title"><?php _e( 'Archives', 'tiffanyturnham' ); ?></h6>
					<ul>
					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					</ul>
				</aside>
			<?php endif; ?>
			<?php
			/*wpb_display_testimonials();
			echo do_shortcode('[testimonial posts_per_page="1" orderby="none"]');*/
			?>
			
		</div>	
	</div><div class="clear"></div>
	<div class="subscribe">
		<div class="sixteen columns">
			<img src="<?php bloginfo('template_directory'); ?>/images/subscribe.png" alt="subscribe" class="scale-with-grid" />
		</div>
	</div>
<?php get_footer(); ?>